﻿/* 01. Write a method that asks the user for his name and prints 'Hello, <name>' (for example, 'Hello, Peter!'). 
 * Write a program to test this method. */

using System;

public class HelloUser
{
    public static void Main()
    {
        GetAndPrintUsername();
    }

    public static void GetAndPrintUsername()
    {
        string username;

        Console.Write("\nPlease, enter your name... ");
        username = Console.ReadLine();
        Console.Clear();
        Console.WriteLine("\nHello, {0}!\n", username);
    }
}